package com.dianqiu.common.service.impl;

import org.springframework.stereotype.Component;

import com.dianqiu.base.service.impl.BaseService;
import com.dianqiu.common.bean.DqHandicapTO;
import com.dianqiu.common.service.HandicapService;
import com.dianqiu.common.service.ListHandicapService;

@Component("handicapService")
public class HandicapServiceImpl extends BaseService implements HandicapService {

	@Override
	public DqHandicapTO getHandicapByMatchId(Integer matchId) {
		return this.getHandicapByMatchId(matchId);
	}

	@Override
	public DqHandicapTO getHandicapByBetCompanyId(Integer companyId) {
		// TODO Auto-generated method stub
		return this.getHandicapByBetCompanyId(companyId);
	}

	@Override
	public DqHandicapTO getHandicapByBetCompanyIdAndMatchId(Integer companyId,
			Integer matchId) {
		return this.getDqHandicapDao().getHandicapByBetCompanyIdAndMatchId(companyId, matchId,"desc");
	}

}
